package com.cms.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cms.exception.SystemDBException;
import com.cms.model.TrMenu;

public interface MenuManagerMapper {

	 /**
	  * 
	  * @param menu
	  * @throws SystemDBException
	  */
	 public void saveMenu(@Param("menu")TrMenu menu)throws SystemDBException;
	 
	 
	 /**
	  * 
	  * @param menu
	  * @throws SystemDBException
	  */
	 public void updateMenu(@Param("menu")TrMenu menu)throws SystemDBException;
	 

	 /***
	  * 
	  * @param menu
	  * @throws SystemDBException
	  */
	 public void deleteMenu(@Param("menu")TrMenu menu)throws SystemDBException;
	 
	 /***
	  * 
	  * @param menu
	  * @return
	  * @throws SystemDBException
	  */
	 public List<TrMenu>queryMenu(@Param("menu")TrMenu menu);
	 
	 /***
	  * 
	  * @param id
	  * @return
	  */
	 public TrMenu getMenuInfo(@Param("menu")TrMenu menu);
}
